package com.easyexcel.demo.write.dataVo;

import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * 基础数据类
 *
 * @author Jiaju Zhuang
 **/
@Getter
@Setter
@EqualsAndHashCode
public class IndexData {
    @ExcelProperty(value = "字符串标题", index = 0)
    private String stringData;
    @ExcelProperty(value = "日期标题", index = 3)
    private Date dateData;
    @ExcelProperty(value = "数字double标题", index = 1)
    private BigDecimal doubleData;
    @ExcelProperty(value ="数字BigDecimal标题", index = 4)
    private BigDecimal bigDecimalData;

    /**
     * 忽略这个字段
     */
    @ExcelIgnore
    @ExcelProperty("忽略标题")
    private String ignoreData;
}
